package com.xian.im.modules.command.group;

import com.xian.im.common.model.dto.GroupDto;
import com.xian.im.common.proto.MsgRequest;

import java.security.NoSuchAlgorithmException;

/**
 * @program: xian-im-server
 * @description:
 * @author: liru.xian
 * @create: 2021-01-27 09:26
 **/
public interface GroupCommand {

    /**
     * 群组业务
     *
     * @param request
     * @param ctxId
     * @param groupEntity
     */
    void exec(MsgRequest request, String ctxId, GroupDto groupEntity) throws NoSuchAlgorithmException;

    /**
     * 群组code
     *
     * @return
     */
    String cmdCode();
}
